package com.yuexi.domain.payment.wxpay.definds;

/**
 * @author jie
 * @date 2023/4/6 -18:15
 */
public class CreateOrderErrorCode {
    // 系统超时
    public static final String SYSTEMERROR = "SYSTEMERROR";
    // 银行端超时
    public static final String BANKERROR = "BANKERROR";
    // 该笔交易因为业务规则要求，需要用户输入支付密码。
    public static final String USERPAYING = "USERPAYING";


    /**
     * 是否是未知状态
     */
    public static boolean isUnknownState(String stateCode) {
        return stateCode.equals(SYSTEMERROR) ||
                stateCode.equals(BANKERROR) ||
                stateCode.equals(USERPAYING);

    }
}
